<?php

class GenericObjectTypeTable extends Doctrine_Table {

    public static function getInstance() {
        return Doctrine_Core::getTable('GenericObjectType');
    }

    public function getOneByIdentifier($identifier) {
        $q = $this->createQuery();
        $q->addWhere('typeValue = ? ', $identifier);
        return $q->fetchOne();
    }

}